//
//  ImageRequest.m
//  NewsReader
//
//  Created by blacksun on 11-2-16.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "ImageRequest.h"


@implementation ImageRequest


- (void)connectionDidFinishLoading:(NSURLConnection *)connection{
    UIImage *image = [[UIImage alloc] initWithData:self.responseData];
	[self.delegate request:self successWithResult:image andCommand:self.command];
    [image release];
    self.responseData = nil;
	self.currentConnection = nil;
}

@end
